package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IEmployeeService {
    void deleteByPrimaryKey(Long id);

    void insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    void updateByPrimaryKey(Employee record);

    PageResult query(QueryForObject qo);

    Employee checkName(String username);

    void changeState(Long id);

    Employee checkUsername(String username);

    void resetPassword(Long id);

    List<Employee> queryEmployeeListByDepartmentId(Long departmentId);

    List<Employee> queryHeadteacher();

    List<Long> queryRoleByEmpId(Long empId);


    Employee queryPicUrlByEmpId(Long empPicId);

    void saveImageUrl(Employee employee);
}
